const varal = require('./varal');

const server = new varal();

//加载中间件
const middleware = require('./middleware');
server.use(middleware);

//加载路由
server.loadPath('routes');

/*
//默认访问public/index.html
server.any('/', async (app) => {
	app.text('it works!');
}).use(['app']);
*/

//server.any('/demo', 'DemoController@index').use(['app']);

server.run();
